class EmergencyResource {
  EmergencyResource({required this.sourcePointNum, required this.teamNum, required this.expertNum, required this.peripherySourcePointNum});

  EmergencyResource.fromJson(Map<String, dynamic> json) {
    sourcePointNum = (json['sourcePointNum'] ?? 0) as int;
    teamNum = (json['teamNum'] ?? 0) as int;
    expertNum = json['expertNum'] as int;
    peripherySourcePointNum = json['peripherySourcePointNum'] as int;
  }

  int sourcePointNum = 0;
  int teamNum = 0;
  int expertNum = 0;
  int peripherySourcePointNum = 0;

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['sourcePointNum'] = sourcePointNum;
    data['teamNum'] = teamNum;
    data['expertNum'] = expertNum;
    data['peripherySourcePointNum'] = peripherySourcePointNum;
    return data;
  }
}
